﻿<UserControl x:Class="Reporter.Controls.CircularPercentualProgressBar"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             xmlns:controls="clr-namespace:Reporter.Controls" 
             mc:Ignorable="d"
             x:Name="thisUserControl"
             d:DesignHeight="300" d:DesignWidth="300">
    <Border x:Name="Preloader" Background="{DynamicResource ControlBackgroundBrush}" HorizontalAlignment="Center" VerticalAlignment="Center" Padding="5" CornerRadius="10" >
        <StackPanel Orientation="Horizontal" VerticalAlignment="Center" HorizontalAlignment="Center" >
            <controls:CircularProgressBar Width="18" Height="14" Visibility="{Binding IsReporting, Converter={StaticResource BoolToVisibilityConverter}}" />
            <TextBlock TextWrapping="Wrap" x:Name="ProgressText" VerticalAlignment="Center" Foreground="#FFF3FEF4" HorizontalAlignment="Left" Style="{DynamicResource FormLabelStyle}" Text="{Binding ElementName=thisUserControl, Path=FinishedPercentage}" Visibility="{Binding ElementName=thisUserControl, Path=ShowPercentage, Converter={StaticResource BoolToVisibilityConverter}}"/>
            <TextBlock TextWrapping="Wrap" Text="%" VerticalAlignment="Center" Foreground="#FFF3FEF4" HorizontalAlignment="Left" Margin="3,0,0,0" Style="{DynamicResource FormLabelStyle}" Visibility="{Binding ElementName=thisUserControl, Path=ShowPercentage, Converter={StaticResource BoolToVisibilityConverter}}"/>
        </StackPanel>
    </Border>
</UserControl>
